package com.shenrongrong.service;

import com.github.pagehelper.PageInfo;
import com.shenrongrong.model.User;

import java.util.List;


public interface UserService {
    public PageInfo<User> selectUser(Integer pageNum,Integer pageSize,User user);
    public List<User> selectUser(User user);
    public int updateUser(User user);
    public int deleteUser(Integer id);
    public int insertUser(User user);
    public boolean isPhoneUnique(String phone);
    public boolean isUsernameUnique(String username);
    public boolean isUserUnique(String username, String password,Integer role);
}
